package com.jk.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jk.mapper.PermissionMapper;
import com.jk.pojo.Permission;
import com.jk.service.PermissionService;

@Service
@Transactional
public class PermissionServiceImpl extends BaseServiceImpl<Permission>	implements PermissionService {

	@Resource
	private PermissionMapper permissionMapper;
	
	@Transactional(readOnly=true)
	@Override
	public List<Permission> queryPermissionByUser(Long id) {
		return permissionMapper.queryPermissionByUser(id);
	}
}
